export const queryNodeRect = async (selector, instance) => new Promise((resolve, reject) => {
  const query = uni.createSelectorQuery().in(instance)
  query.select(selector).boundingClientRect(resolve).exec()
})

export const stopPullDownRefresh = () => uni.stopPullDownRefresh()

export const setNavigationBarTitle = (title = '') => uni.setNavigationBarTitle({ title })

export const getLaunchOptionsSync = () => uni.getLaunchOptionsSync()
